{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport React, { useContext, useMemo } from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nimport Tooltip from '../tooltip';\nimport Content from './FloatButtonContent';\nimport FloatButtonGroupContext from './context';\nimport warning from '../_util/warning';\nexport var floatButtonPrefixCls = 'float-btn';\nvar FloatButton = function FloatButton(props, ref) {\n  var customizePrefixCls = props.prefixCls,\n    className = props.className,\n    _props$type = props.type,\n    type = _props$type === void 0 ? 'default' : _props$type,\n    _props$shape = props.shape,\n    shape = _props$shape === void 0 ? 'circle' : _props$shape,\n    icon = props.icon,\n    description = props.description,\n    tooltip = props.tooltip,\n    restProps = __rest(props, [\"prefixCls\", \"className\", \"type\", \"shape\", \"icon\", \"description\", \"tooltip\"]);\n  var _useContext = useContext(ConfigContext),\n    getPrefixCls = _useContext.getPrefixCls,\n    direction = _useContext.direction;\n  var groupShape = useContext(FloatButtonGroupContext);\n  var prefixCls = getPrefixCls(floatButtonPrefixCls, customizePrefixCls);\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  var mergeShape = groupShape || shape;\n  var classString = classNames(hashId, prefixCls, className, \"\".concat(prefixCls, \"-\").concat(type), \"\".concat(prefixCls, \"-\").concat(mergeShape), _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'));\n  var contentProps = useMemo(function () {\n    return {\n      prefixCls: prefixCls,\n      description: description,\n      icon: icon,\n      type: type\n    };\n  }, [prefixCls, description, icon, type]);\n  var buttonNode = /*#__PURE__*/React.createElement(Tooltip, {\n    title: tooltip,\n    placement: \"left\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-body\")\n  }, /*#__PURE__*/React.createElement(Content, Object.assign({}, contentProps))));\n  if (process.env.NODE_ENV !== 'production') {\n    process.env.NODE_ENV !== \"production\" ? warning(!(shape === 'circle' && description), 'FloatButton', 'supported only when `shape` is `square`. Due to narrow space for text, short sentence is recommended.') : void 0;\n  }\n  return wrapSSR(props.href ? /*#__PURE__*/React.createElement(\"a\", Object.assign({\n    ref: ref\n  }, restProps, {\n    className: classString\n  }), buttonNode) : /*#__PURE__*/React.createElement(\"button\", Object.assign({\n    ref: ref\n  }, restProps, {\n    className: classString,\n    type: \"button\"\n  }), buttonNode));\n};\nif (process.env.NODE_ENV !== 'production') {\n  FloatButton.displayName = 'FloatButton';\n}\nvar ForwardFloatButton = /*#__PURE__*/React.forwardRef(FloatButton);\nexport default ForwardFloatButton;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","classNames","React","useContext","useMemo","ConfigContext","useStyle","Tooltip","Content","FloatButtonGroupContext","warning","floatButtonPrefixCls","FloatButton","props","ref","customizePrefixCls","prefixCls","className","type","shape","icon","description","tooltip","restProps","getPrefixCls","direction","groupShape","wrapSSR","hashId","mergeShape","classString","contentProps","buttonNode","createElement","title","placement","assign","process","env","NODE_ENV","href","displayName","ForwardFloatButton","forwardRef"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/float-button/FloatButton.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport React, { useContext, useMemo } from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nimport Tooltip from '../tooltip';\nimport Content from './FloatButtonContent';\nimport FloatButtonGroupContext from './context';\nimport warning from '../_util/warning';\nexport const floatButtonPrefixCls = 'float-btn';\nconst FloatButton = (props, ref) => {\n  const {\n      prefixCls: customizePrefixCls,\n      className,\n      type = 'default',\n      shape = 'circle',\n      icon,\n      description,\n      tooltip\n    } = props,\n    restProps = __rest(props, [\"prefixCls\", \"className\", \"type\", \"shape\", \"icon\", \"description\", \"tooltip\"]);\n  const {\n    getPrefixCls,\n    direction\n  } = useContext(ConfigContext);\n  const groupShape = useContext(FloatButtonGroupContext);\n  const prefixCls = getPrefixCls(floatButtonPrefixCls, customizePrefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const mergeShape = groupShape || shape;\n  const classString = classNames(hashId, prefixCls, className, `${prefixCls}-${type}`, `${prefixCls}-${mergeShape}`, {\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  });\n  const contentProps = useMemo(() => ({\n    prefixCls,\n    description,\n    icon,\n    type\n  }), [prefixCls, description, icon, type]);\n  const buttonNode = /*#__PURE__*/React.createElement(Tooltip, {\n    title: tooltip,\n    placement: \"left\"\n  }, /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-body`\n  }, /*#__PURE__*/React.createElement(Content, Object.assign({}, contentProps))));\n  if (process.env.NODE_ENV !== 'production') {\n    process.env.NODE_ENV !== \"production\" ? warning(!(shape === 'circle' && description), 'FloatButton', 'supported only when `shape` is `square`. Due to narrow space for text, short sentence is recommended.') : void 0;\n  }\n  return wrapSSR(props.href ? /*#__PURE__*/React.createElement(\"a\", Object.assign({\n    ref: ref\n  }, restProps, {\n    className: classString\n  }), buttonNode) : /*#__PURE__*/React.createElement(\"button\", Object.assign({\n    ref: ref\n  }, restProps, {\n    className: classString,\n    type: \"button\"\n  }), buttonNode));\n};\nif (process.env.NODE_ENV !== 'production') {\n  FloatButton.displayName = 'FloatButton';\n}\nconst ForwardFloatButton = /*#__PURE__*/React.forwardRef(FloatButton);\nexport default ForwardFloatButton;"],"mappings":";;AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC;IAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAAC;EACjG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAIN,MAAM,CAACC,SAAS,CAACO,oBAAoB,CAACL,IAAI,CAACP,CAAC,EAAEG,CAAC,CAACO,CAAC,CAAC,CAAC,EAAER,CAAC,CAACC,CAAC,CAACO,CAAC,CAA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